package org.windowkit.toolkit.widget.table.event;

import java.util.EventListener;

/**
 * Interface for listeners that want to subscribe to {@link DataMoveEvent}s.
 * @author Eric Lundin
 */
public interface DataMoveListener extends EventListener {

	/**
	 * Called when the table data has been moved to the other table.
	 *
	 * @param dme
	 */
	public void dataMoved(DataMoveEvent dme);

	/**
	 * Called before data is moved between tables. If for some reason this move
	 * is not allowed the developer should throw a {@link DataMoveVetoException}.
	 *
	 * @param dme
	 */
	// public boolean dataWillMove(DataMoveEvent dme);

}
